package org.threeman.game.junqi.utils;

import java.util.ArrayList;
import java.util.Collections;

import flexjson.JSONSerializer;

public class JSONUtils {
	
	public static JSONSerializer getSerializer(String... excludes) {
		JSONSerializer serializer = new JSONSerializer();
		ArrayList<String> excludeList = new ArrayList<String>();
		Collections.addAll(excludeList, excludes);
		serializer.setExcludes(excludeList);
		return serializer;
	}

}
